package com.olap.starter.controller.admin;


import com.olap.starter.core.response.Result;
import com.olap.starter.service.FormMainCreateJsonService;
import com.olap.starter.core.base.BaseController;
import com.olap.starter.pojo.FormMainCreateJson;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author WBG
 * @since 2022-12-28
 */
@RestController
@AllArgsConstructor
@RequestMapping("/online/formMainCreateJson")
public class FormMainCreateJsonController extends BaseController<FormMainCreateJson, FormMainCreateJsonService> {


    @GetMapping("/getJson")
    public Result<?> getJson(Integer id, Long uuid, String theme) {
        return success(getService().getJson(id,uuid,theme));
    }
}
